//
//  WJTab4Controller.m
//  JerryIos
//
//  Created by jerrywang on 2018/2/5.
//  Copyright © 2018年 王军. All rights reserved.
//

#import "WJTab4Controller.h"

@interface WJTab4Controller ()

@end

@implementation WJTab4Controller

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //设置背景色
    self.view.backgroundColor = WJColor(206, 206, 206);
    
    //设置导航条
    [self setupNavBar];
    
}

- (void)setupNavBar {
    // 设置
    UIBarButtonItem *settingItem =  [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"icon_settings_normal"]
                                                         highImage:[UIImage imageNamed:@"icon_settings_selected"]
                                                            target:self
                                                            action:@selector(setting)];
    // 夜间模型
    UIBarButtonItem *nightItem =  [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"icon_game_normal"]
                                                        selImage:[UIImage imageNamed:@"icon_game_selected"]
                                                          target:self
                                                          action:@selector(night:)];
    self.navigationItem.rightBarButtonItems = @[settingItem,nightItem];
    
    // 中间的标题
    self.navigationItem.title = @"我的";
    
}

#pragma mark - 设置就会调用
- (void)setting{
    WJLog(@"setting");
}

- (void)night:(UIButton *)button{
    WJLog(@"night");
}

@end
